package com.yunduansing.demo.service;

import com.yunduansing.demo.entity.MenuEntity;
import com.yunduansing.demo.model.menu.AntdMenuTreeModel;
import com.yunduansing.demo.model.menu.MenuTreeModel;
import com.yunduansing.demo.model.menu.SetStatusModel;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 系统菜单表 服务类
 * </p>
 *
 * @author yunduansing
 * @since 2020-05-24
 */
public interface MenuService extends IService<MenuEntity> {
    List<MenuTreeModel> getTree();
    /**
     * 根据用户id获取有权限的菜单
     * @param userId
     * @return
     */
    List<AntdMenuTreeModel> getUserMenuTree(int userId,boolean admin);
}
